﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddAppointment.aspx.cs" Inherits="AddAppointment" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
<center>
    <form id="form1" runat="server">
    <div>
    
    <div style="height: 47px; width: 1104px">
    
        MEDICAL SYSTEM</div>
    
    </div>
    <p>Search CaseNo:&nbsp;&nbsp;
        <asp:DropDownList ID="SearchColumn" runat="server">
            <asp:ListItem Value="PATFULLNAME">Name</asp:ListItem>
            <asp:ListItem>Address</asp:ListItem>
        </asp:DropDownList>
        <asp:TextBox ID="SearchValue" runat="server" Width="176px"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" BorderStyle="Solid" Text="Go" 
            onclick="Button1_Click" />
        <br />
        <br />
        <asp:GridView ID="GridView1" runat="server" CellPadding="4" 
            EnableModelValidation="True" ForeColor="#333333" GridLines="None" 
            AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
            DataSourceID="AccessDataSource1" EmptyDataText="No records found !" 
            PageSize="3">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="CASENO" HeaderText="CASENO" 
                    SortExpression="CASENO" />
                <asp:BoundField DataField="PATFULLNAME" HeaderText="PATFULLNAME" 
                    SortExpression="PATFULLNAME" />
                <asp:BoundField DataField="ADDRESS" HeaderText="ADDRESS" 
                    SortExpression="ADDRESS" />
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        </asp:GridView>
        <br />
    </p>
    <hr />
    <p>
        Please Add New 
        Transaction Details:</p>
    <p>
        
        <asp:Table ID="Table1" runat="server">
            <asp:TableRow ID="TableRow1" runat="server" HorizontalAlign="Left">
                <asp:TableCell ID="TableCell1" runat="server"> Case No.</asp:TableCell>
                <asp:TableCell ID="TableCell2" runat="server"><asp:TextBox ID="TextBox1" runat="server" Width="200px"></asp:TextBox></asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow2" runat="server" HorizontalAlign="Left">
                <asp:TableCell ID="TableCell3" runat="server">AppointmentDate</asp:TableCell>
                <asp:TableCell ID="TableCell4" runat="server">
                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                    </asp:ToolkitScriptManager>
                    <asp:CalendarExtender ID="AppontmentDate" runat="server" TargetControlID="TextBox2">
                    </asp:CalendarExtender>
                    <%--<asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>--%>
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow3" runat="server" HorizontalAlign="Left">
                <asp:TableCell ID="TableCell5" runat="server">Time</asp:TableCell>
                <asp:TableCell ID="TableCell6" runat="server">
                  <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
                <asp:MaskedEditExtender ID="TextBox7_MaskedEditExtender" runat="server" 
                    CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                    CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                    CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" 
                    MaskType="Time" TargetControlID="TextBox7" Mask="99:99" AcceptAMPM="True">
                </asp:MaskedEditExtender>
                  <%-- <asp:DropDownList ID="DropDownList2" runat="server">
                        <asp:ListItem>01</asp:ListItem>
            <asp:ListItem>02</asp:ListItem>
            <asp:ListItem>03</asp:ListItem>
            <asp:ListItem>04</asp:ListItem>
            <asp:ListItem>05</asp:ListItem>
            <asp:ListItem>06</asp:ListItem>
            <asp:ListItem>07</asp:ListItem>
            <asp:ListItem>08</asp:ListItem>
            <asp:ListItem>09</asp:ListItem>
            <asp:ListItem>10</asp:ListItem>
            <asp:ListItem>11</asp:ListItem>
            <asp:ListItem>12</asp:ListItem>
                    </asp:DropDownList> :
                    <asp:DropDownList ID="DropDownList3" runat="server">
                          <asp:ListItem>00</asp:ListItem>
                        <asp:ListItem>15</asp:ListItem>
            <asp:ListItem>30</asp:ListItem>
            <asp:ListItem>45</asp:ListItem>
      
                    </asp:DropDownList>&nbsp;&nbsp;&nbsp;   <asp:DropDownList ID="DropDownList4" runat="server">
                          <asp:ListItem>AM</asp:ListItem>
                        <asp:ListItem>PM</asp:ListItem>
                    </asp:DropDownList>--%>
                </asp:TableCell>
            </asp:TableRow> 
                    
        </asp:Table>
        <br />
        <asp:Button ID="SubmitButton" runat="server" Text="Submit" 
            onclick="SubmitButton_Click" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="CancelButton" runat="server" onclick="CancelButton_Click" 
            Text="Cancel" />
           <br />
           </p>
    </form>
    <p>
        &nbsp;</p>
        </center>
        <asp:AccessDataSource ID="AccessDataSource1" runat="server" 
            DataFile="~/App_Data/Medical.mdb" 
            
        SelectCommand="SELECT AP.CASENO, PM.PATFULLNAME, PM.ADDRESS FROM (APPOINTMENTS AP INNER JOIN PATIENT_MASTER PM ON AP.CASENO = PM.CASENO)"></asp:AccessDataSource>
</body>
</html>
